<%@page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@taglib uri="TowkerTagLib" prefix="rbac"%>
<%@ taglib uri="/WEB-INF/tags/CommonFunction.tld" prefix="cfn" %>  
<%@include file="/commons/include/html_doctype.html" %>
<html>
<head>
	<title>出仓单列表</title>
	<%@include file="/commons/include/get.jsp" %>
	<script type="text/javascript" src="${ctx}/js/calendar/My97DatePicker/WdatePicker.js"></script>
	<script type="text/javascript">
		//放置脚本
	</script>
</head> 
<body>
<table border="0" cellspacing="0" cellpadding="0" class="listLogo">
	<tr>
		<td class="title">出仓单列表</td>
		<td>
			<div class="menuTool">
			<a class="del" id="listFormDelAll" href="delOutWarehouse.htm">删除所选</a>
			<a class="add" href="addOutWarehouse1.htm">添加</a>
			<a class="back" onclick="javascript:history.back();" href="#">返回</a>
			</div>
		</td>
	</tr>
</table>
<div class="line"></div>
<form id="queryForm" method="post" action="getOutWarehouse.htm">
<table border="0" cellspacing="0" cellpadding="0" class="queryTable">
	<tr>
		<td class="title">出仓单号：</td>
		<td class="input"><input id="title" name="out_warehouse_code" class="input" value="${fn:escapeXml(param.out_warehouse_code)}" /></td>
	
		<td class="title">出库日期：</td>
		<td class="input"><input id="title" name="out_date"  value="${fn:escapeXml(param.out_date)}"  class="Wdate" onFocus="WdatePicker({isShowWeek:true})" /></td>
	
		<td class="title">出库时间：</td>
		<td class="input"><input id="title" name="out_time"  value="${fn:escapeXml(param.out_time)}" class="Wdate" onFocus="WdatePicker({isShowWeek:true})" /></td>
	
		<td class="title">仓库代码：</td>
		<td class="input">
		<select id="depot_code" name="depot_code">
				<option value="">请选择</option>
				 <c:forEach items="${deportList}" var="d" varStatus="status">
					<option value="${d.depot_code}" <c:if test="${d.depot_code==param.depot_code}">selected="selected"</c:if>>${d.depot_code}</option>
				</c:forEach>
		</select>
		</td>
	</tr>
	<tr>
		<td class="title">出仓单审核状态：</td>
		<td class="input">
		<select name="audit_status" id="audit_status">
			<option value="">请选择</option>
			<option value="0" <c:if test="${param.audit_status==0 }">selected="selected"</c:if> >未审核</option>
			<option value="1" <c:if test="${param.audit_status==1 }">selected="selected"</c:if>>已审核</option>
		</select>
		</td>
	
		<td class="title">出仓单记账状态：</td>
		<td class="input">
		<select name="acc_status" id="acc_status">
			<option value="">请选择</option>
			<option value="0" <c:if test="${param.acc_status==0 }">selected="selected"</c:if> >未记账</option>
			<option value="1" <c:if test="${param.acc_status==1 }">selected="selected"</c:if>>已记账</option>
		</select>
		</td>
	
		<td class="title">出仓性质：</td>
		<td class="input">
		<select id="out_type" name="out_type">
			<option value="">请选择</option>
			<option value="1" <c:if test="${param.out_type==1}">selected="selected"</c:if> >生产</option>
			<option value="2" <c:if test="${param.out_type==2}">selected="selected"</c:if> >代用</option>
			<option value="3" <c:if test="${param.out_type==3}">selected="selected"</c:if> >分装</option>
			<option value="4" <c:if test="${param.out_type==4}">selected="selected"</c:if> >返工</option>
			<option value="5" <c:if test="${param.out_type==5}">selected="selected"</c:if> >调色</option>
			<option value="6" <c:if test="${param.out_type==6}">selected="selected"</c:if> >领用</option>
			<option value="7" <c:if test="${param.out_type==7}">selected="selected"</c:if> >其他</option>
		</select>
		</td>
	
		<td class="query" colspan="2"><input id="_querySubmit_" type="submit" class="button" value="查询" /></td>
	</tr>
</table>
</form>
<div class="line"></div>
<form id="listForm" method="post" action="delOutWarehouse.htm">
<table border="0" cellspacing="1" cellpadding="0" class="listTable">
	<tr class="list_title">
		<td style="width:3%"><input id="chkall" type="checkbox" /></td>
		<td>出仓单号</td>
		<td>财务统计核算期</td>
		<td>出库日期</td>
		<td>状态</td>
		<td>操作</td>
	</tr>
<c:forEach items="${pageModel.result}" var="d" varStatus="status">
	<tr class="${status.index%2==0?'list_even':'list_odd'}">
		<td nowrap="nowrap">
		<c:if test="${d.audit_status!=1}">
			<input name="keyIndex" type="checkbox" value="${d.id}" />
		</c:if>	
		</td>
		<td>${fn:escapeXml(d.out_warehouse_code)}</td>
		<td>${fn:escapeXml(d.acc_period)}</td>
		<td>${cfn:formatDate(d.out_date, 'yyyy-MM-dd')}</td>
		<td>
		<c:if test="${d.audit_status ==1}">已审核</c:if>
		<c:if test="${d.audit_status ==0}">未审核</c:if>
		</td>
		<td>
			<div class="menuTool">
			<c:if test="${d.audit_status!=1}">
			<a class="del" href="delOutWarehouse.htm?keyIndex=${d.id}">删除</a>
			<a class="upd" href="updOutWarehouse1.htm?keyIndex=${d.id}">修改</a>
			</c:if>
			
			<c:if test="${fn:escapeXml(d.audit_status==0)}">
			<a class="get" href="auditOutWarehouse1.htm?keyIndex=${d.id}">审核</a>
			</c:if>
			<!--  
			<c:if test="${d.acc_status==0 && d.audit_status==1}">
			<a class="get" href="accOutWarehouse1.htm?keyIndex=${d.id}">记账</a>
			</c:if>
			-->
			<a class="get" href="getOutWarehouseById.htm?keyIndex=${d.id}">详细</a>
			</div>
		</td>
	</tr>
</c:forEach>
</table>
<input id="_submit_" type="submit" style="display:none;" />
</form>
<table border="0" cellspacing="0" cellpadding="0" class="bottomTable">
	<tr><td>${pageNav.page}</td></tr>
</table>
</body>
</html>
